NewsParserPlugin\Service\AI\AnthropicAiServiceProvider S

Total Complexity 31
Dependencies 7
Dependents 0
Total lines 187
Lines of code 149
Logical lines of code 78
Comment lines 0
Methods 15
Properties 6

Methods 15

Method Rating Maintainability Complexity Lines of code
chat()
A
43 11 46
getOptions()
S
58 2 17
__construct()
S
66 3 8
generateTextContent()
S
58 2 15
fetchOptions()
S
59 2 14
isAPIKeyDefined()
S
73 2 6
getTextRequestBody()
S
61 1 14
getName()
S
81 1 3
getWpConfigApiKey()
S
82 1 3
getTextRequestUrl()
S
80 1 3
isTextResposeFormateValid()
S
82 1 3
isImageResposeFormateValid()
S
82 1 3
retriveTextContent()
S
80 1 3
retriveImageContent()
S
80 1 3
getRequestHeaders()
S
67 1 8